package com.sqy.controller;

import com.sqy.pojo.User;
import com.sqy.utlis.RespBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
public class UserController {


      @GetMapping("/data")
      public RespBean getUserAll(){

            User user = new User();
            user.setId(1);
            user.setName("丽丽");
            user.setAge(20);
            user.setAddress("十堰");
            user.setSex("女");
            ArrayList<User> list = new ArrayList<>();
            list.add(user);
            return  RespBean.success(list);

      }

}
